package at.tasat.util;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

public final class Version {
	public static String getVersion() {
		try {
			FileInputStream versionFileStream = new FileInputStream("resources/version");
			BufferedReader reader = new BufferedReader(new InputStreamReader(versionFileStream));
			String version = reader.readLine();
			reader.close();
			return version != null ? version.trim() : "0.0";
		} catch (IOException _) {
			return "-42? Version-file not found";
		}
	}
}
